package org.jeecg.modules.htxincailiao.account.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.jeecg.common.util.SmartVerificationUtil;

import javax.validation.constraints.NotEmpty;

@Data
public class HTAccountAuthDTO {

    /**用户名*/
    @NotEmpty(message = "用户名或手机号不能为空")
    @ApiModelProperty(value = "用户名或手机号")
    private String username;

    /**手机号*/
//    @NotEmpty(message = "手机号不能为空")
//    @Pattern(regexp = SmartVerificationUtil.PHONE_REGEXP, message = "手机号格式不正确")
//    @ApiModelProperty(value = "手机号")
//    private java.lang.String phoneNumber;

    /**密码*/
    @NotEmpty(message = "密码不能为空")
    @Length(min = 8, message = "密码最少为8位字符")
    @ApiModelProperty(value = "密码")
    private String password;

  /**验证码*/
    @NotEmpty(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码*")
    private String captcha;

    /**验证码验证Key*/
    @NotEmpty(message = "验证码验证Key不能为空")
    @ApiModelProperty(value = "验证码验证Key")
    private String captchaCheckKey;



}
